#define _CRT_SECURE_NO_WARNINGS 1
#include"LNode.h"
int main()
{
	LNode* L,*R,*sum,*sub,*inter;
	ElemType arr1[] = { 1, 3, 4, 7, 9, 11, 15, 18, 20 };
	ElemType arr2[] = { 1, 2, 4, 5, 9, 12 };
	CreatListTail(L, arr1, 9);
	CreatListTail(R, arr2, 6);
	/*DestroyList(L);*/
	DisplayList(L);
	DisplayList(R);
	Add(L, R, sum);
	DisplayList(sum);
	Sub(L, R, sub);
	DisplayList(sub);
	intersection(L, R, inter);
	DisplayList(inter);
	return 0;
}